/*********************************************************************************
  *FileName:  sensor.c
  *Author:    ChenJiehong
  *Version:   V1.0
  *Date:      2023-11-29
****************************************Includes***********************************/
#include "main.h"
#include "bdc.h"

/***************************************Variables***********************************/
typedef struct
{
    uint16_t u16PositionPercentage_Max; /* 正常设置为10000:100% */
    uint16_t u16PositionPercentage_Min; /* 正常设置为0: 0% */
    uint16_t u16Sensor_Max;             /* 应用范围内的传感器输出最大值 */
    uint16_t u16Sensor_Min;             /* 应用范围内的传感器输出最小值 */
} Position_Para_t;



extern Position_Para_t Position_Para;
/***************************************Functions***********************************/
uint16_t Position2SenserValue(Position_Para_t *Para, uint16_t u16PositionPercent);
uint16_t SenserValue2Position(Position_Para_t *Para, uint16_t SenserValue);

/***************************************END OF FILE*********************************/
